---
--类名: EscortWarning.lua
--创建日期: 2015-12-11
--创建人: 陈小虎
--功能描述: 护送警告
--修改内容:
--修改日期:   
--修改人:     
--修改备注: 
--
local EscortWarning = class("EscortWarning",function()
    return display.newLayer()
end)

function EscortWarning:ctor(controller,musicId)
	self.mController = controller

    --ui根节点
    self.mUINode = cc.uiloader:load(Res.State_HusongWarning)
    self:addChild(self.mUINode)
    self.mUINode:setContentSize(cc.size(display.width,display.height))
    ccui.Helper:doLayout(self.mUINode)

    self:playAnimation()
end

function EscortWarning:playAnimation()
	local husongWarningAction = cc.CSLoader:createTimeline(Res.State_HusongWarning)
	self.mUINode:runAction(husongWarningAction)
	husongWarningAction:gotoFrameAndPlay(0,husongWarningAction:getDuration(),true)

	husongWarningAction:setLastFrameCallFunc(
        function()
            
        end)
end

return EscortWarning